package net.jonbuck.tassoo.eventmanager.events;

import net.jonbuck.tassoo.eventmanager.exception.UnsupportedListenerException;
import net.jonbuck.tassoo.eventmanager.listener.TaskStoreOpenedListener;

/**
 * 
 * 
 * @since 1.0.0
 */
public class TaskStoreOpenedEvent implements TassooEvent {

	/**
	 * 
	 */
	public void dispatchEvent(Object listener) {
		if (listener instanceof TaskStoreOpenedListener) {
			final TaskStoreOpenedListener eventListener = (TaskStoreOpenedListener) listener;
			eventListener.processTaskStoreOpenedEvent();
		} else {
			throw new UnsupportedListenerException("001", "Blah");
		}
	}

}
